//var name = prompt("请输入您的姓名：");
//var sex = prompt("请输入您的性别：")
//var age = prompt("请输入您的年龄：")
//// alert(name+" "+sex+" "+age);
//console.log(name);

//var a = 1;
//var b = 2;
//var c = a + b;
//console.log(c);

//function fib(num){
//    if(num == 1 || num == 2){
//    return 1
//    }
//    return fib(num - 1) + fib(num - 2);
//}
//
//function call(a,b,c){
//    return a(3)+b+c;
//}
//var d = call(fib,1,1);
//console.log(d);
//function call(f, x, y) {
//    console.log(f);
//    console.log(x);
//    console.log(y);
//    return f(x, y);
//}
//var r = call( function (a, b) {
//    console.log(a);
//    console.log(b);
//    return a + b;
//    },100,200);
//
//console.log (r);

function getFunction() {
    console.log( ' getFunction被调用了');
    return function(a, b) {
    console.log(a);
    console.log(b);
    return a + b;
    };
}
var func = getFunction();
console.log(func);
var z = func (10,20);
console.log(z);
